package net.sf.rose.util;

/**
 * 类说明：自定义异常封装类
 * <p>目的不强制用户捕捉异常
 * @author fengjian
 * @since 2014-6-17
 */
public class RoseRuntimeException extends RuntimeException {

	private static final long serialVersionUID = 7281050612956365315L;

	public RoseRuntimeException(String message, Exception e) {
		super(e.getMessage() + '\n' + message);
		super.setStackTrace(e.getStackTrace());
	}

	public RoseRuntimeException(String message) {
		super(message);
	}

	public RoseRuntimeException(Exception e) {
		super(e.getMessage());
		super.setStackTrace(e.getStackTrace());
	}
}
